package com.ruoyi.medicine.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 订单信息对象 his_medicine_order
 * 
 * @author ruoyi
 * @date 2024-08-30
 */
public class HisMedicineOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单ID */
    private Long orderId;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNum;

    /** 制单人 */
    @Excel(name = "制单人")
    private Long orderPerson;

    /** 供应商ID */
    @Excel(name = "供应商ID")
    private Long supplierId;

    /** 订单总金额 */
    @Excel(name = "订单总金额")
    private Double orderMoney;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private String orderStatus;

    /** （0正常 1 禁用） */
    private String status;
    private List<HisMedicineOrderDetail> hisMedicineOrderDetailList;


    //存储药品名称 用户接收请求数据
    private String drugName;

    public String getDrugName() {
        return drugName;
    }

    public void setDrugName(String drugName) {
        this.drugName = drugName;
    }

    public List<HisMedicineOrderDetail> getHisMedicineOrderDetailList() {
        return hisMedicineOrderDetailList;
    }

    public void setHisMedicineOrderDetailList(List<HisMedicineOrderDetail> hisMedicineOrderDetailList) {
        this.hisMedicineOrderDetailList = hisMedicineOrderDetailList;
    }



    public void setOrderId(Long orderId)
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setOrderNum(String orderNum) 
    {
        this.orderNum = orderNum;
    }

    public String getOrderNum() 
    {
        return orderNum;
    }
    public void setOrderPerson(Long orderPerson) 
    {
        this.orderPerson = orderPerson;
    }

    public Long getOrderPerson() 
    {
        return orderPerson;
    }
    public void setSupplierId(Long supplierId) 
    {
        this.supplierId = supplierId;
    }

    public Long getSupplierId() 
    {
        return supplierId;
    }
    public void setOrderMoney(Double orderMoney) 
    {
        this.orderMoney = orderMoney;
    }

    public Double getOrderMoney() 
    {
        return orderMoney;
    }
    public void setOrderStatus(String orderStatus) 
    {
        this.orderStatus = orderStatus;
    }

    public String getOrderStatus() 
    {
        return orderStatus;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("orderNum", getOrderNum())
            .append("orderPerson", getOrderPerson())
            .append("supplierId", getSupplierId())
            .append("orderMoney", getOrderMoney())
            .append("orderStatus", getOrderStatus())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
